import matplotlib.pyplot as plt
import numpy as np

labels = ['Python', 'Java', 'C++', 'JavaScript', '其他']
sizes = [35, 25, 20, 15, 5]
colors = ['#FF9999', '#66B2FF', '#99FF99', '#FFD700', '#FFB6C1']
explode = (0.1, 0, 0, 0, 0)  # 突出显示第一块

plt.figure(figsize=(8, 8))
plt.pie(sizes, explode=explode, labels=labels, colors=colors,
        autopct='%1.1f%%', shadow=True, startangle=90)
plt.title('编程语言使用分布')
plt.axis('equal')  # 保证饼图是圆形
plt.show()